<?php
namespace zake\server\zadb;

use zake\foundation\reactor\trigger\Connect;
use zake\helper\Console;
use zake\server\HandlerAble;


class ZaConnect extends Connect implements HandlerAble
{
    /**
     * 构造器
     * WsConnect constructor.
     * @param $resource
     */
    public function __construct($resource)
    {
        parent::__construct($resource);
    }


    public function __destruct()
    {
        Console::success("table connect stream __destruct");
    }


    /**
     *
     * @return mixed
     *
     * @author liu.bin 2020-05-18 18:39
     */
    public function getDb()
    {
        return $this->getListener()->getDb();
    }




    public function onBufferHandler($buffer)
    {

    }




    public function onInsert()
    {

    }



    public function onDelete()
    {

    }



    public function onUpdate()
    {

    }



    public function onSelect()
    {

    }



    public function onCloseHandler()
    {

    }
}
